import dayjs from 'dayjs'

export const formatDate = (time, flag = '-') => {
  return dayjs(time).format(`YYYY${flag}MM${flag}DD`)
}
